<template>
  <svg class="icon" aria-hidden="true">
    <use :xlink:href="'#icon-' + type"></use>
  </svg>
</template>

<script>
import './useIcons'

export default {
  name: 'Icon',
  props: {
    type: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.icon {
  display: inline-block;
  width: 50px;
  height: 50px;
}
</style>
